package en.edu.scau.cmi.zhanzhiyong.carpter09;

import java.util.StringTokenizer;

public class Example9_13 {
	public static void main(String args[]) {
		String s = "you are welcome(thank you),nice to meet you";
		StringTokenizer fenxi = new StringTokenizer(s, "(),");
		int number = fenxi.countTokens();
		while(fenxi.hasMoreTokens()) {
			String str = fenxi.nextToken();
			System.out.println(str+" ");
		}
		
		System.out.println(number);
	}
}
